@include('admin.layout.bone_header')




<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">


    <div class="layui-form-item">
        <label class="layui-form-label">起始金额</label>
        <div class="layui-input-inline">
            <input type="text"  name="users_buy_price" value="{{$users_buy_price}}"  placeholder="请输入返现起始金额" autocomplete="off" class="layui-input" >
        </div>

        <label class="layui-form-label">队列人数</label>
        <div class="layui-input-inline">
            <input type="text"  name="users_buy_max_count" value="{{$users_buy_max_count}}"  placeholder="请输入队列人数" autocomplete="off" class="layui-input" >
        </div>

        <label class="layui-form-label">活动批次(请保持唯一)</label>
        <div class="layui-input-inline">
            <input type="text"  name="user_activity_id" value="{{$user_activity_id}}"  placeholder="请输活动批次" autocomplete="off" class="layui-input" >
        </div>
    </div>




    <div class="layui-block">
        <label class="layui-form-label">时间区间</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="timeRange" value="{{$timeRange}}" id="test1" placeholder="时间区间">
        </div>
    </div>






    {{--    配置返现队列相关--}}


    <div class="layui-form-item ">
        <input type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submit" id="submit" value="保存">
    </div>

</div>




<script src="/static/admin_templete/ueditor/ueditor.config.js"></script>
<script src="/static/admin_templete/ueditor/ueditor.all.min.js"></script>


<script>

</script>

<script>

    layui.use(['laydate','form','laydate'], function() {
        let form = layui.form,
            laydate = layui.laydate;

        laydate.render({
            elem: '#test1'
            ,type: 'datetime'
            ,range: true
        });



        form.on('submit(submit)', function(data){
            HttpUtils.post('{{route('admin.settings.fanxian')}}',data.field,function (res){
                if (res.code !== 200){
                    Utils.errorToast(res.msg);
                    return;
                }
                Utils.successToast(res.msg);
            })
        });
    });
</script>
@include('admin.layout.bone_footer')
